projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eb29e9
)
[XEND][XENAPI] XendCheckpoint should use XendConfig for passing configs.
author
Alastair Tse
<atse@xensource.com>
Thu, 5 Oct 2006 16:29:19 +0000
(17:29 +0100)
committer
Alastair Tse
<atse@xensource.com>
Thu, 5 Oct 2006 16:29:19 +0000
(17:29 +0100)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendCheckpoint.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendCheckpoint.py
b/tools/python/xen/xend/XendCheckpoint.py
index 158c6c378114a1f17386fac0c5c8cec7a31a13ca..3b6baf5710188d314468ddbd5a166c4c798bed3e 100644
(file)
--- a/
tools/python/xen/xend/XendCheckpoint.py
+++ b/
tools/python/xen/xend/XendCheckpoint.py
@@
-109,7
+109,7
@@
def save(fd, dominfo, network, live, dst):
raise Exception, exn
-def restore(xd, fd):
+def restore(xd, fd
, dominfo = None
):
signature = read_exact(fd, len(SIGNATURE),
"not a valid guest state file: signature read")
if signature != SIGNATURE:
@@
-129,7
+129,11
@@
def restore(xd, fd):
vmconfig = p.get_val()
- dominfo = xd.restore_(vmconfig)
+ if dominfo:
+ dominfo.update(XendConfig(sxp = vmconfig), refresh = False)
+ dominfo.resume()
+ else:
+ dominfo = xd.restore_(vmconfig)
store_port = dominfo.getStorePort()
console_port = dominfo.getConsolePort()